﻿using Nop.Web.Framework.Mvc;
using System.Collections.Generic;
using System.Globalization;

namespace Nop.Web.Models.Media
{
    public class SlideshowModel : BaseNopModel
    {
        public SlideshowModel()
        {
            this.Type = Core.Domain.Media.SlideshowType.None;
            this.RandId = Nop.Core.CommonHelper.GenerateRandomDigitCode(5);
        }

        #region Settings

        public Nop.Core.Domain.Media.SlideshowType Type { get; set; }

        public string RandId { get; set; }

        public double Height { get; set; }
        public double Width { get; set; }

        public string HeightPx { get { return string.Format(CultureInfo.InvariantCulture, "{0}px", this.Height); } }
        public string WidthPx { get { return string.Format(CultureInfo.InvariantCulture, "{0}px", this.Width); } }

        public double AutoSlideInterval { get; set; }

        #region Carousel
        
        public bool HoverPause { get; set; }
        public bool Links { get; set; }
        public bool Navigation { get; set; }
        public bool ShowTitle { get; set; }

        #endregion

        #region 3D

        public bool AutoRotate { get; set; }
        public double MouseWheel { get; set; }
        public double Speed { get; set; }
        public double XPosition { get; set; }
        public double YPosition { get; set; }
        public double YRadius { get; set; }

        #endregion

        #endregion

        public IList<PictureLinkModel> PictureLinks { get; set; }
    }
}